<template>
  <div>
    <h1>我是树组件</h1>
    <slot :data="dept" />
  </div>
</template>

<script>
export default {
  data () {
    return {
      dept: { id: 1, name: '总部' }

    }
  }
}
</script>

<style lang="scss" scoped>
</style>
